package com.yuhs.zixing.study.design.pattern.dp002.structural.s003.decorator.d002;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/5/1 9:20 PM
 */
public abstract class Decorator002 extends SchoolReport002 {
    //首先我要知道是哪个成绩单
    private SchoolReport002 sr;

    //构造函数，传递成绩单过来
    public Decorator002(SchoolReport002 sr) {
        this.sr = sr;
    }

    //成绩单还是要被看到的
    public void report() {
        this.sr.report();
    }

    //看完还是要签名的
    public void sign(String name) {
        this.sr.sign(name);
    }
}
